This is because the container of the dialog changes sizes after a
refresh, for reasons that are not fully explained. A better condition
is to check explicitly that the click doesn't fall into the dialog.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7541
Co-authored-by: Florian Müllner <fmuellner@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3713>
const actor =
global.stage.get_actor_at_pos(Clutter.PickMode.ALL, x, y);
- if (actor === this)
+ if (!this._viewBox.contains(actor))
this.popdown();
});
this.add_action(clickAction);